package org.kms.dao;

import org.apache.ibatis.annotations.Param;
import org.kms.pojo.KmsPermission;
import org.kms.pojo.KmsUser;

import java.util.List;

public interface kmsPermissionDao extends CommonDao<KmsPermission,Integer> {
    public List<Integer> getPermissionsbypid(Integer roleId);
    public List<KmsPermission> getsecond(Integer parentid);
    public List<KmsPermission> getfirstmenu();
    public List<KmsPermission> getbythird(Integer parentid);
    public List<KmsPermission> getPermissionSimpleTree();

    public void addPermission(@Param(value = "roleId") Integer roleId, @Param(value = "perId") List<Integer> perId);
    public void delPer(Integer roleId);

    public List<KmsPermission> getbyerji(Integer perId);


    public KmsPermission getbyoneji(Integer perId);
    public KmsPermission getbytwoji(Integer perId);
    public KmsPermission getbythreeji(Integer perId);

    public Integer getbyoneperId(Integer perId);
    public Integer getbytwoperId(Integer perId);

    public KmsPermission getbykmspd(Integer perId);

    public void updpermission(KmsPermission condition);

    public void delpermission(Integer perId);
    public void delpermission1(Integer perId);
    public void delpermission2(Integer perId);


    public List<Integer> getbytwoperida(Integer perId);
    public List<Integer> getbythreeperida(Integer perId);

}
